// AWTGridBagConstraints.h: interface for the AWTGridBagConstraints class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_AWTGRIDBAGCONSTRAINTS_H__49185463_418F_11D2_A3F1_006097A44215__INCLUDED_)
#define AFX_AWTGRIDBAGCONSTRAINTS_H__49185463_418F_11D2_A3F1_006097A44215__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "AWTObject.h"

class AFX_EXT_CLASS AWTGridBagConstraints : public AWTObject  
{
DECLARE_DYNAMIC(AWTGridBagConstraints)
public:
	AWTGridBagConstraints();
	AWTGridBagConstraints(AWTGridBagConstraints &c);
	virtual ~AWTGridBagConstraints();

	enum {
		GBRELATIVE = -1,
		REMAINDER,
		NONE = 0,
		BOTH,
		HORIZONTAL,
		VERTICAL,
		CENTER = 10,
		NORTH,
		NORTHEAST,
		EAST,
		SOUTHEAST,
		SOUTH,
		SOUTHWEST,
		WEST,
		NORTHWEST
	};

	int m_gridx;
	int m_gridy;
	int m_gridwidth;
	int m_gridheight;
	float m_weightx;
	float m_weighty;
	int m_anchor;
	int m_fill;
	int m_ipadx;
	int m_ipady;
//	AWTInsets* m_insets;

	void setInsets(AWTInsets *insets)
	{
		if (m_insets != NULL)
			delete m_insets;
		m_insets = insets;
	}
	AWTInsets* getInsets()
		{return m_insets;}

//protected:
	int m_tempX;
	int m_tempY;
	int m_tempWidth;
	int m_tempHeight;
	int m_minWidth;
	int m_minHeight;

protected:
	AWTInsets* m_insets;
};

#endif

